
/* jshint esversion: 6 */
import { combineReducers } from 'redux';
import user from './user';
import loginPage from './loginPage';
import { routerReducer } from 'react-router-redux';

/**
 *
 * @param  {Object} user      将user信息单独抽离到单独的reducer，共享使用
 * @param  {Object} loginPage 登录页rootReducer
 * @return {Object}           Root Reducer
 */
const rootReducer = combineReducers({
  user,
  loginPage,
  routing: routerReducer
});

export default rootReducer;
